Optimal. Leaf size=156 \[ \frac {(5 A+3 B) \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A-B) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}+\frac {(5 A+3 B) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.27, antiderivative size = 156, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {4012, 3810, 3808, 206} \[ \frac {(5 A+3 B) \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A-B) \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}+\frac {(5 A+3 B) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 3808
Rule 3810
Rule 4012
Rubi steps
\begin {align*} \int \frac {\sec ^{\frac {3}{2}}(c+d x) (A+B \sec (c+d x))}{(a+a \sec (c+d x))^{5/2}} \, dx &=-\frac {(A-B) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(5 A+3 B) \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{(a+a \sec (c+d x))^{3/2}} \, dx}{8 a}\\ &=-\frac {(A-B) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(5 A+3 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac {(5 A+3 B) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+a \sec (c+d x)}} \, dx}{32 a^2}\\ &=-\frac {(A-B) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(5 A+3 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}-\frac {(5 A+3 B) \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{16 a^2 d}\\ &=\frac {(5 A+3 B) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right )}{16 \sqrt {2} a^{5/2} d}-\frac {(A-B) \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac {(5 A+3 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.81, size = 106, normalized size = 0.68 \[ \frac {\cos \left (\frac {1}{2} (c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \left (\frac {1}{2} \sin \left (\frac {1}{2} (c+d x)\right ) ((5 A+3 B) \cos (c+d x)+A+7 B)+(5 A+3 B) \cos ^4\left (\frac {1}{2} (c+d x)\right ) \tanh ^{-1}\left (\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )}{4 d (a (\sec (c+d x)+1))^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 498, normalized size = 3.19 \[ \left [\frac {\sqrt {2} {\left ({\left (5 \, A + 3 \, B\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (5 \, A + 3 \, B\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (5 \, A + 3 \, B\right )} \cos \left (d x + c\right ) + 5 \, A + 3 \, B\right )} \sqrt {a} \log \left (-\frac {a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {2} \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 2 \, a \cos \left (d x + c\right ) - 3 \, a}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right ) + \frac {4 \, {\left ({\left (5 \, A + 3 \, B\right )} \cos \left (d x + c\right )^{2} + {\left (A + 7 \, B\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{64 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}, -\frac {\sqrt {2} {\left ({\left (5 \, A + 3 \, B\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (5 \, A + 3 \, B\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (5 \, A + 3 \, B\right )} \cos \left (d x + c\right ) + 5 \, A + 3 \, B\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {2} \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )}}{a \sin \left (d x + c\right )}\right ) - \frac {2 \, {\left ({\left (5 \, A + 3 \, B\right )} \cos \left (d x + c\right )^{2} + {\left (A + 7 \, B\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{32 \, {\left (a^{3} d \cos \left (d x + c\right )^{3} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} + 3 \, a^{3} d \cos \left (d x + c\right ) + a^{3} d\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \sec \left (d x + c\right ) + A\right )} \sec \left (d x + c\right )^{\frac {3}{2}}}{{\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {5}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 2.63, size = 350, normalized size = 2.24 \[ -\frac {\left (-1+\cos \left (d x +c \right )\right )^{2} \left (5 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )\right )-5 A \cos \left (d x +c \right ) \sin \left (d x +c \right ) \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right )+3 B \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )\right )-3 B \cos \left (d x +c \right ) \sin \left (d x +c \right ) \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right )-4 A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \cos \left (d x +c \right )-5 A \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sin \left (d x +c \right )+4 B \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \cos \left (d x +c \right )-3 B \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \sin \left (d x +c \right )-A \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}-7 B \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (\cos ^{2}\left (d x +c \right )\right ) \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {3}{2}}}{16 d \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )^{5} a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}}{{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{5/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________